<template>
	<view>
		<view style="padding:30rpx">
			<fui-textarea size="26" isCounter placeholder="请输入内容" v-model="VipMemo"></fui-textarea>
		</view>
		<button class="sub-btn" @click="saveVipMemo">保存我的介绍</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				VipMemo: ''
			};
		},
		onLoad() {
			this.getMyVipinfo();
		},
		methods: {
			getMyVipinfo() {
				this.$httpost('/UserCenter/myVipinfo', {}).then(res => {
					if (res.code == 200) {
						this.VipMemo = res.data.VipMemo
					}
				});
			},
			saveVipMemo() {
				this.$httpost('/UserAction/saveVipMemo', {
					VipMemo: this.VipMemo
				}).then(res => {
					if (res.code == 200) {
						uni.navigateBack()
					}
				});
			}
		}
	}
</script>

<style lang="scss">
.submitBtn {
	background-color: $globalColor;
	color:#000;
	font-size:28rpx;
	border:0rpx solid $globalColor;
	width:80vw;
	height: 60rpx;
	line-height: 60rpx;
	margin:auto;
	margin-top:100rpx;
}
</style>
